<!DOCTYPE html>
<html lang="en">
<head>
	<{include file="header.html"}>
	<title>分销管理-营销中心-<{$user_data['school_name']}>-德安信会计在线教育平台</title>
</head>
<body>
<div class="wrap">
	<!--star left-->
	<div class="column">
		<{include file="left_menu.html"}>
	</div>
	<div id="ContMianBox">
		<!--star子栏目-->
		<div class="sub-colum">
		    <div class="tit">营销中心</div>
		    <ul>
					<{foreach from=$left_menu_min.list item=item}>
				 <li <{if $item['url'] == $left_menu_min.curr}>class="curr"<{/if}>><a href="<{$item['url']}>"><{$item['name']}></a></li>
				 <{/foreach}>

		    </ul>
		</div>
		<!--end子栏目-->
		<!--end left-->
		<div class="container narrow">
		    <!--star conter-->
		    <div class="cetContent">
					<div class="tit p-lr20">
					    <span class="curr"><a href="/marketing_fx">分销记录</a></span>
							<span ><a href="/marketing_fx/share">分享记录</a></span>
					    <span><a href="/marketing_fx/setting">分销设置</a></span>
					</div>
					<!--star内容区域-->
					<div class="mainScroll">
					    <div class="mainContainer line-all">
					        <!--star tabMainCont-->
					        <div class="tabMainCont">
										<h3>&nbsp;</h3>
										<!-- <div class="ui-overview">
												<ul>
														<li>
														<h5>
														<a class="c-3b9eeb" href="#">0</a>
														</h5>
														<h6>今日分销佣金</h6>
														</li>
														<li>
														<h5>
														<a class="c-3b9eeb" href="#">0</a>
														</h5>
														<h6>今日分销订单</h6>
														</li>
														<li>
														<h5>
														<a class="c-3b9eeb" href="#">0</a>
														</h5>
														<h6>今日分享</h6>
														</li>
														<li>
														<h5>
														<a class="c-3b9eeb" href="#">0</a>
														</h5>
														<h6>今日分销会员</h6>
														</li>
												</ul>
										</div> -->
					            <!--star营销渠道-->
											<div class="tabMainCont">
												<!--star会员管理-->
												<fieldset class="layui-elem-field">
											  		<legend>筛选</legend>
										  			<div class="layui-field-box">
					  									<form class="layui-form layui-form-pane1" method="POST" action="/marketing_fx/index/<{$status}>">
																<div class="layui-form-item">


																<div class="layui-form-item">
															    <label class="layui-form-label">下单时间：</label>
															    <div class="layui-input-inline">
															      <input class="layui-input" name="st" value="<{if $data['st'] != 0}><{$data['st']}><{/if}>" placeholder="开始日" id="LAY_demorange_s">
															    </div>
																	<div class="layui-form-mid">-</div>
															    <div class="layui-input-inline">
															      <input class="layui-input" name="et" value="<{if $data['et'] != 0}><{$data['et']}><{/if}>"  placeholder="截止日" id="LAY_demorange_e">
															    </div>
																	<div class="layui-inline">
																		<button type="submit" class="layui-btn">搜索</button>

																	</div>
																	<div class="layui-inline">
																		佣金总额：￥<{$commission|string_format:"%.2f"}>
																		订单总额：￥<{$order_amount|string_format:"%.2f"}>
																	</div>
															  </div>
										                    </form>
									                  	</div>
														</fieldset>
												<!--商品列表 star-->
												<div class="goods_list p-t10">
													<div class="mtc_tab">
														<!--star mt-->
														<div class="mt">

															<a href="/marketing_fx" class="<{if $status ==-1}>curr<{/if}>">全部</a>
															<a href="/marketing_fx/index/2"  class="<{if $status ==2}>curr<{/if}>">已支付</a>
															<a href="/marketing_fx/index/0"  class="<{if $status ==0}>curr<{/if}>">未支付</a>

														</div>
														<!--end mt-->
														<!--star mc-->
														<div class="mc">

															<div class="u_table_list m-t20">
																<!--star 商品-->
																<div class="table002">
																	<table>
																		<colgroup>

																			<col width="%">
																			<col width="%">
																			<col width="%">
																			<col width="%">
																			<col width="%">
																			<col width="%">
																		</colgroup>
																		<tbody>
																			<tr>

																				<th>订单号</th>
																				<th>订单总价</th>
																				<th>佣金总额</th>
																				<th>下单时间</th>
																				<th>订单类型</th>
																				<th>订单支付状态</th>
																			</tr>
																		</tbody>
																		<tbody>
																			<{if isset($order_list) }>
																			<{foreach from=$order_list item=item}>
																				<tr>

																					<td class="not_lb tal">
																						<{$item['order_num']}>
																					</td>
																					<td class="not_lb tal"><span class="c-ff6d5e">¥<{$item['total_order_amount']|string_format:"%.2f"}>元</span></td>
																					<td class="not_lb tal"><span class="c-ff6d5e">¥<{$item['total_order_commission']|string_format:"%.2f"}>元</span></td>

																					<td class="not_lb tal">
																						<{$item[ 'order_time']|date_format: '%Y-%m-%d %H:%M:%S'}>
																					</td>
																					<td class="not_lb tal">
																						<div class="colorBtn">
																							<{if $item[ 'order_type']==1}>
																								<p><span>视频课订单</span></p>
																							<{elseif $item[ 'order_type']==2}>
																								<p><span>直播课订单</span></p>
																								<{elseif $item[ 'order_type']==3}>
																									<p><span>面授课订单</span></p>
																									<{elseif $item[ 'order_type']==4}>
																										<p><span>题库订单</span></p>
																										<{elseif $item[ 'order_type']==5}>
																											<p><span>实训订单</span></p>
																							<{/if}>
																						</div>
																					</td>
																					<td class="not_lb tal">
																						<div class="colorBtn">
																							<{if $item[ 'payment_status']==0}>
																								<p><span>未支付</span></p>

																								<{elseif $item[ 'payment_status']==2}>
																									<p><span>支付成功</span></p>
																									<{else}>
																									支付失败
																									<{/if}>
																						</div>
																					</td>

																				</tr>
																				<{/foreach}>
																				<{/if}>
																		</tbody>
																	</table>
																</div>
																<!--end 商品-->
															</div>
															<div class="pages p-tb20" style="text-align:right;">
																<{if isset($pagination)}><{$pagination}><{/if}>
															</div>
														</div>
														<!--end mc-->
													</div>

												</div>
												<!--商品列表 end -->
												<!--star会员管理-->
											</div>
					            <!--end营销渠道-->


					        </div>
					        <!--end tabMainCont-->
					        </div>

					    </div>
					</div>
					<!--end内容区域-->

		</div>


	</div>
</div>
<{include file="footer.html"}>
<script>
	$(function(){

	});

	layui.use('laydate', function(){
	  	var laydate = layui.laydate;

	  	var start = {
	    	min: '2016-11-31 23:59:59'
	    	,max: laydate.now(+1)
	    	,istoday: false
	    	,choose: function(datas){
	      	end.min = datas; //开始日选好后，重置结束日的最小日期
	      	end.start = datas //将结束日的初始值设定为开始日
	    }
  		};

	  var end = {
	    min: '2016-11-31 23:59:59'
	    ,max: laydate.now(+1)
	    ,istoday: false
	    ,choose: function(datas){
	      start.max = datas; //结束日选好后，重置开始日的最大日期
	    }
	  };

	  document.getElementById('LAY_demorange_s').onclick = function(){
	    start.elem = this;
	    laydate(start);
	  }
	  document.getElementById('LAY_demorange_e').onclick = function(){
	    end.elem = this
	    laydate(end);
	  }

	});

</script>

</body>
</html>
